using System;
using System.Collections.Generic;
using System.Text;

namespace GURUCORE.Portal.Core
{
	[AttributeUsage(AttributeTargets.Field)]
	public class PageletOutParamAttribute : Attribute
	{
        // CONST
		public const int URL_PARAM_DEST = 0;
		public const int SESSION_PARAM_DEST = 1;
        // public const int PAGE_CONTEXT_PARAM_DEST = 2;    // // page context is use as internal storage for inter-exchange between pagelet IN A SINGLE REQUEST, not request to request, so it can't be here

        #region PUBLIC PROPERTIES
        
        private int m_nParamDest = 0;
		private string m_sParamName;		

		public int ParamDest
		{
			get
			{
				return m_nParamDest;
			}
		}

		public string ParamName
		{
			get
			{
				return m_sParamName;
			}
        }
        
        #endregion


        public PageletOutParamAttribute(string p_sParamName, int p_nParamDest)
        {
            m_nParamDest = p_nParamDest;
            m_sParamName = p_sParamName;
        }
	}
}
